<HTML >
<style>
.button{TEXT-DECORATION: underline;color:red;}
</style>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta NAME="GENERATOR">
<TITLE>页头页尾设置</TITLE>

<SCRIPT language=javaScript src="public.js"></SCRIPT>
<script language=javascript>
var userData=window.dialogArguments[0]
var ReportName=window.dialogArguments[1]
var bClickOk=false

//alert("ReportName="+ReportName)
</script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function check(){
	if (isNaN(fontTop.value)==true){
		alert("请输入数字!")
		fontTop.value =""
		fontTop.focus ()
		return false 
		}
	if (isNaN(fontBottom.value )==true){
		alert("请输入数字!")
		fontBottom.value =""
		fontBottom.focus ()
		return false
	}
}
function cmdOK_onclick() {
	if (check()==false) {
		return false;
	}
	else
	{
	var head="<root>"+"<title1>"+title1.value +"</title1>"+"<title2>"+title2.value +"</title2>"+"<top11>"+top11.value +"</top11>"
			+"<top12>"+top12.value +"</top12>"+"<top13>"+top13.value +"</top13>"+"<top21>"+top21.value +"</top21>"+"<top22>"+top22.value +"</top22>"
			+"<top23>"+top23.value +"</top23>"+"<top31>"+top31.value +"</top31>"+"<top32>"+top32.value +"</top32>"+"<top33>"+top33.value +"</top33>"
			+"<bottom11>"+bottom11.value +"</bottom11>"+"<bottom12>"+bottom12.value +"</bottom12>"+"<bottom13>"+bottom13.value +"</bottom13>"
			+"<bottom21>"+bottom21.value +"</bottom21>"+"<bottom22>"+bottom22.value +"</bottom22>"+"<bottom23>"+bottom23.value +"</bottom23>"
			+"<bottom31>"+bottom31.value +"</bottom31>"+"<bottom32>"+bottom32.value +"</bottom32>"+"<bottom33>"+bottom33.value +"</bottom33>"
			+"<fontTop>"+fontTop.value +"</fontTop>"+"<fontBottom>"+fontBottom.value +"</fontBottom>"+"</root>"
	//alert(head)
	SaveUserData("appendInfo","appendInfo"+ReportName,head)
	 bClickOk=true

	self.close ()
	}
}

function clear_onclick() {
	title1.value =""
	title2.value =""
	top11.value =""
	top12.value =""
	top13.value =""
	top21.value =""
	top22.value =""
	top23.value =""
	top31.value =""
	top32.value =""
	top33.value =""
	bottom11.value =""
	bottom12.value =""
	bottom13.value =""
	bottom21.value =""
	bottom22.value =""
	bottom23.value =""
	bottom31.value =""
	bottom32.value =""
	bottom33.value =""
	fontTop.value =""
	fontBottom.value =""
	title1.focus ()
	
}

function window_onload() {
	
 var repHead=LoadUserData("appendInfo","appendInfo"+ReportName)//装入缓存中附加信息中的数据
// alert(repHead)
	if (repHead!=""){
		var oXML3=new ActiveXObject("Microsoft.XMLDOM");
		oXML3.async="false";
		oXML3.loadXML(repHead);	
		title1.value =oXML3.documentElement.childNodes(0).text//oXML3.documentElement.childNodes.item(0).text 
		title2.value =oXML3.documentElement.childNodes(1).text
		top11.value =oXML3.documentElement.childNodes(2).text
		top12.value =oXML3.documentElement.childNodes(3).text
		top13.value =oXML3.documentElement.childNodes(4).text
		top21.value =oXML3.documentElement.childNodes(5).text
		top22.value =oXML3.documentElement.childNodes(6).text
		top23.value =oXML3.documentElement.childNodes(7).text
		top31.value =oXML3.documentElement.childNodes(8).text
		top32.value =oXML3.documentElement.childNodes(9).text
		top33.value =oXML3.documentElement.childNodes(10).text
	
		bottom11.value =oXML3.documentElement.childNodes(11).text
		bottom12.value =oXML3.documentElement.childNodes(12).text
		bottom13.value=oXML3.documentElement.childNodes(13).text
		bottom21.value=oXML3.documentElement.childNodes(14).text
		bottom22.value=oXML3.documentElement.childNodes(15).text
		bottom23.value=oXML3.documentElement.childNodes(16).text
		bottom31.value=oXML3.documentElement.childNodes(17).text
		bottom32.value=oXML3.documentElement.childNodes(18).text
		bottom33.value=oXML3.documentElement.childNodes(19).text
		fontTop.value =oXML3.documentElement.childNodes(20).text
		fontBottom.value =oXML3.documentElement.childNodes(21).text
	}
}

function cancel_onclick() {
	self.close ()
}
function keypressdown(){
	if (event.keyCode ==13){
		cmdOK_onclick()
	}
	if (event.keyCode ==27){
		cancel_onclick()
	}
}
function window_onbeforeunload() {
		
		window.returnValue=bClickOk
		

}

//-->
</SCRIPT>
</HEAD>

<BODY LANGUAGE=javascript bgcolor="#ded5cf" onload="return window_onload()" onkeydown="return keypressdown()" onbeforeunload="return window_onbeforeunload()">
<fieldset style="HEIGHT: 130px; LEFT: 15px; POSITION: absolute; TOP: 20px; WIDTH: 495px">
<legend style="FONT-SIZE: 12px; HEIGHT: 14px; WIDTH: 62px">附加信息（上面）</legend>
<TABLE WIDTH="399" BORDER=0 CELLSPACING=0 CELLPADDING=0 style="FONT-SIZE: 12px; HEIGHT: 100px; LEFT: 10px; POSITION: absolute; TOP: 17px; WIDTH: 476px">
	<TR>
		
		<TD colspan=3><INPUT id=title1 name=text1 
      style="HEIGHT: 18px; WIDTH: 470px" size=18 align=middle></TD>
		
	</TR>
	<TR>
		
		<TD colspan=3><INPUT id=title2 name=text2 
      style="HEIGHT: 17px; WIDTH: 470px" size=18 align=middle></TD>
		
	</TR>
  <TR>
    <TD><INPUT id=top11 name=text3 height="18" style="HEIGHT: 18px"></TD>
    <TD align="middle"><INPUT id=top12 name=text4 height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=top13 name=text5 height="18" style="HEIGHT: 18px"></TD></TR>
  <TR>
    <TD><INPUT id=top21 name=text6 height="18" style="HEIGHT: 18px"></TD>
    <TD align="middle"><INPUT id=top22 name=text7 height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=top23 name=text8 height="18" style="HEIGHT: 18px"></TD></TR>
	<TR>
		<TD><INPUT id=top31 name=text9 height="18" style="HEIGHT: 18px"></TD>
		<TD align="middle"><INPUT id=top32 name=text10 height="18" style="HEIGHT: 18px"></TD>
		<TD><INPUT id=top33 name=text11 height="18" style="HEIGHT: 18px"></TD>
	</TR>
</TABLE>
</fieldset>
<TABLE border=1 cellPadding=1 cellSpacing=1 frame=box style="BORDER-COLLAPSE: collapse; FONT-SIZE: 12px; 
HEIGHT: 92px; LEFT: 15px; POSITION: absolute; TOP: 162px; WIDTH: 495px" width="495" borderColor=black id=TABLE2 align=center>
  
  <TR>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD></TR>
  <TR>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD></TR>
  <TR>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD></TR>
  <TR>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD></TR>
  <TR>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD>
    <TD align=middle>样&nbsp; 表</TD></TR></TABLE>
<fieldset style="HEIGHT: 101px; LEFT: 15px; POSITION: absolute; TOP: 261px; WIDTH: 495px">
<legend style="FONT-SIZE: 12px; HEIGHT: 14px; WIDTH: 57px">附加信息（下面）</legend>
<TABLE border=0 cellPadding=0 cellSpacing=0 style="HEIGHT: 75px; LEFT: 9px; 
POSITION: absolute; TOP: 20px; WIDTH: 472px" width="75%" id=TABLE1>
  
  <TR>
    <TD><INPUT id=bottom11 name=text12 
      height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=bottom12 name=text13 
      height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=bottom13 name=text14 
      height="18" style="HEIGHT: 18px"></TD></TR>
  <TR>
    <TD><INPUT id=bottom21 name=text15 
      height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=bottom22 name=text16 
      height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=bottom23 name=text17 
      height="18" style="HEIGHT: 18px"></TD></TR>
  <TR>
    <TD><INPUT id=bottom31 name=text18 
      height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=bottom32 name=text19 
      height="18" style="HEIGHT: 18px"></TD>
    <TD><INPUT id=bottom33 name=text20 
      height="18" style="HEIGHT: 18px"></TD></TR></TABLE>
     </fieldset>
     <fieldset 
style="HEIGHT: 48px; LEFT: 15px; POSITION: absolute; TOP: 377px; WIDTH: 495px">
     <legend style="FONT-SIZE: 12px">字体大小设置</legend>
     <table border=0 style="FONT-SIZE: 12px; HEIGHT: 10px; LEFT: 7px; POSITION: absolute; TOP: 14px; WIDTH: 478px">
     <tr>
     <td>标题字体大小：</td>
    <TD><INPUT id=fontTop name=text21 style="HEIGHT: 18px; WIDTH: 70px">PX</TD>
    <TD style="WIDTH: 50px" width=50></TD>
    <TD>页尾字体大小：</TD>
    <TD><INPUT id=fontBottom name=text22 style="HEIGHT: 18px; WIDTH: 70px">PX</TD><td style="WIDTH: 50px" width=50></td>
     </tr>
     </table>
     </fieldset>
     <table border=1 bgcolor=#f0c01a  bordercolordark="#ffe5d5" bordercolorlight="#808080" style="HEIGHT: 17px; LEFT: 313px; POSITION: absolute; TOP: 435px" cellpadding =0 cellspacing=0>
     <tr>
     <td>
     <INPUT id=cmdOK name=button1 type=button style="BACKGROUND-COLOR: #f0c01a; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; CURSOR: hand; FONT-SIZE: 12px; HEIGHT: 17px;  WIDTH: 62px" value="确  定" LANGUAGE=javascript onmouseover="this.className='button' " onmouseout="this.className=''" onclick="return cmdOK_onclick()">
     </td>
     <td>
     <INPUT id=cancel name=button3 type=button style="BACKGROUND-COLOR: #f0c01a; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; CURSOR: hand; FONT-SIZE: 12px; HEIGHT: 17px;  WIDTH: 62px" value="取  消" LANGUAGE=javascript onmouseover="this.className='button' " onmouseout="this.className=''" onclick="return cancel_onclick()">
	</td>
	</tr>
	</table>
</BODY>
</HTML>
